-
Notifications
You must be signed in to change notification settings - Fork 43
Add recommendations on non-idempotent operations to vshard docs #5252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: latest
Are you sure you want to change the base?
Conversation
9db369a
to
d0c7e23
Compare
d0c7e23
to
e601387
Compare
e601387
to
acd7589
Compare
acd7589
to
d3b7c4a
Compare
d3b7c4a
to
8269db6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the detailed description!
Please, consider my comments below. I also suggest asking @Totktonada to take a look at this doc.
- Read requests can be executed repeatedly. | ||
For this purpose, :ref:`vshard.router.call() <router_api-call>` (with ``mode=read``) uses the ``request_timeout`` parameter | ||
(since ``vshard`` 0.1.28). | ||
It is necessary to pass the ``request_timeout`` and ``timeout`` parameters together, with the following requirement: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's please add request_timeout
option to router API reference here: https://docs.d.tarantool.io/en/doc/5242-deduplication/reference/reference_rock/vshard/vshard_router/#lua-function.vshard.router.call
end | ||
box.commit() | ||
|
||
For update and upsert requests, you can create a *deduplication space* where the request IDs will be saved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's state a bit more explicitly that for now this can be only implemented by the user, there is no support of deduplication from tarantool, but it might appear later.
Resolves #5242
Deployment: https://docs.d.tarantool.io/en/doc/5242-deduplication/platform/sharding/vshard_admin/#deduplication-of-non-idempotent-requests